package org.feifei.pet.domain;


import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.feifei.basic.domain.BaseDomain;
import org.feifei.org.domain.Shop;
import org.feifei.user.domain.User;

import java.math.BigDecimal;

/**
 * 实体类 SearchMasterMsg 寻主消息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
@EqualsAndHashCode
public class SearchMasterMsg extends BaseDomain {
    @ApiModelProperty("寻主消息名称")
    private String name;
    @ApiModelProperty("售价")
    private BigDecimal price;
    @ApiModelProperty("宠物年龄")
    private Integer age;
    @ApiModelProperty("宠物性别")
    private Integer gender;
    @ApiModelProperty("毛色")
    private String coat_color;
    @ApiModelProperty("图片资源，就长啥样")
    private String resources;
    @ApiModelProperty("宠物类型")
    private Long pet_type;
    @ApiModelProperty("支付类型")
    private PetType type;
    @ApiModelProperty("用户地址 即他选择的自己提供宠物的住址")
    private String address;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("消息状态")
    private Integer state = 0; //0表示待处理， 1表示已处理
    private Long user_id;
    @ApiModelProperty("注入的用户类")
    private User user;
    @ApiModelProperty("商店id")
    private Long shop_id;
    private Shop shop;

}
